/**
 * 作者: clz
 * 日期: 2025-04-05 01:48:19
 * 备注: 联盟每日捐献表
 */
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionDonateMainModel {
	protected int id; // id
	protected int type; // 捐献类型
	protected int num; // 捐献次数
	protected String need; // 捐献花费
	protected String reward; // 捐献建造获得奖励
	protected int exp; // 捐献的联盟经验

	public UnionDonateMainModel() {
	}

	public UnionDonateMainModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		type = obj.containsKey("type") ? obj.getInteger("type") : 0;
		num = obj.containsKey("num") ? obj.getInteger("num") : 0;
		need = obj.containsKey("need") ? obj.getString("need") : "";
		reward = obj.containsKey("reward") ? obj.getString("reward") : "";
		exp = obj.containsKey("exp") ? obj.getInteger("exp") : 0;
	}

	public int getId() {
		return id;
	}

	public int getType() {
		return type;
	}

	public int getNum() {
		return num;
	}

	public String getNeed() {
		return need;
	}

	public String getReward() {
		return reward;
	}

	public int getExp() {
		return exp;
	}

}
